<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
    *
    {
        margin: 0;
        padding: 0;
        /* 内减模式 */
        box-sizing: border-box;
    }
    body
    {
        background-color: #f3f5f7;
    }
    /* 版心 */
    .wrapper
    {
        width: 1200px;
        margin: 0 auto;
    }
    /* 清除浮动 */
    .clearfix::before,.clearfix::after
    {
        content: "";
        display: table;
    }
    .clearfix::after
    {
        clear: both;
    }
    /* 去除li前面的小点 */
    li
    {
        list-style: none;
    }
    /* 去除链接的下划线 */
    a
    {
        text-decoration: none;
    }

    /* 窗口信息 */
    .headline{
        
        float: left;
        margin-bottom: 20px;
        padding: 18px 0 40px 40px;
        width: 100%;
        height: 50px;
        background-color: #fff;
        box-shadow: 0px 2px 3px 0px rgba(118, 118,118,0.2);
        font: normal 500 25px 楷体;
    }
    
    .window{
        float: left;
        margin: 40px 10% 0px 10%;
        width: 80%;
    }

    .window table{
        
        width: 100%;
        text-align: center;
        border: 2px solid rgb(207,213,222);
    }

    .window tr{
        height: 60px;
        box-shadow: 0px 2px 3px 1px rgba(118, 118,118,0.1);
    }

    .window td{
        width: 200px;
    }
    
    .window .two{
        width: 120px;
    }

    .window img{
        cursor: pointer;
    }

    .window button{
        width: 120px;
        height: 50px;
        background-color: rgb(0,110,255);
        color: #fff;
        border: none;
        cursor: pointer;
        border-radius: 5px;
    }

    .window .return{
        float: right;
        margin: 40px 50px 0px 0px;
    }

    .window .add{
        float: right;
        margin: 40px 2px 0px 0px ;
    }

    .window button:hover{
        box-shadow: 0px 4px 5px 0px rgba(118, 118,118,0.2);
    }
    </style>
</head>
<body>
    <!-- 窗口信息 -->
    <div class="headline"> 老食堂二餐厅窗口信息</div>
    <div class="window clearfix">
        <table>
            <thead>
                <tr>
                    <td></td>
                    <td>id</td>
                    <td>窗口号</td>
                    <td>餐厅名</td>
                    <td class="two">编辑</td>
                    <td class="two">删除</td>
                    <td class="two"></td>
                </tr>
            </thead>
            <tbody>
                <tr th:each="info:${businesses}">
                    <td><img width="40px" height="40px" th:src="@{/{filename}(filename=${info.getIcon()})}" /></td>
                    <td th:text="${info.getId()}"></td>
                    <td th:text="${info.getNum()}"></td>
                    <td th:text="${info.getName()}"></td>
                    <td class="two"><a th:href="@{/window/updateinfo/(bid=${info.getId()})}"><img th:src="${'/picture/编辑 1.png'}" alt=""></a></td>
                    <td class="two"><a th:href="@{/window/deldishinfo/(bid=${info.getId()})}"><img th:src="${'/picture/删除.png'}" alt=""></a></td>
                    <td class="two"><a th:href="@{/window/getalldish/(bid=${info.getId()})}"><button class="dish">窗口详细信息</button></a></td>
                </tr>
            </tbody>
        </table>
        <a th:href="@{/window/addbypage/(cid=${cid})}"><button class="add">添加窗口</button></a>
        <a  style="color: #fff;" th:href="@{/canteen/canteeninfo}"><button class="return">返回</button></a>
        
    </div>

</body>
</html>